-- GENERATED SPELL FOR [Silverwing Elite] --


function spell0_14715(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14715', 601, 1)
end

function spell1_14715(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15620,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14715', 566, 1)
end

function Sorts_14715(pUnit, Event)
local choix_sorts_14715 = math.random(0, 1)
if choix_sorts_14715 == 0 then
pUnit:RegisterEvent('spell0_14715', 1, 1)
end
if choix_sorts_14715 == 1 then
pUnit:RegisterEvent('spell1_14715', 1, 1)
end
end

function mob14715_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14715', math.random(1500, 3000), 1)
end

function mob14715_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14715_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14715_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14715, 1, 'mob14715_Action')
RegisterUnitEvent(14715, 2, 'mob14715_Leave')
RegisterUnitEvent(14715, 3, 'mob14715_Kill')
RegisterUnitEvent(14715, 4, 'mob14715_Die')
